package com.mall.product.feign;

import com.mall.common.dto.SkuStoreDTO;
import com.mall.common.es.SkuEsModel;
import com.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("mall-search")
public interface EsSearchFeignService {

    @PostMapping("/search/save/product")
    R saveProductIndex(@RequestBody List<SkuEsModel>  skuEsModelList);

}
